package com.qk.management.service;

import com.qk.common.PageResult;
import com.qk.dto.course.CourseDTO;
import com.qk.entity.Course;

import java.util.List;

public interface CourseService {
    List<Course> listByCourse(String subject);

    PageResult<Course> pageCourse(String name, Integer subject, Integer target, Integer page, Integer pageSize);

    void deleteById(Integer id);

    void add(Course course);

    Course findById(Integer id);

    void update(Course course);

    List<CourseDTO.Data> listAllCourses();
}
